﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Films : System.Web.UI.Page
{
    MovieManager mm;
    
    protected void Page_Load(object sender, EventArgs e)
    {
        mm = new MovieManager((debioscoopEntities)Session["db"]);
        if (!IsPostBack)
        {
            BindListView();
        }
        else
        {
            
        }
    }

    private void BindListView()
    {
        movieList.DataSource = mm.getMovies();
        movieList.DataBind();
    }
}